<?php

namespace app\common\validate;

use app\common\validate\Base;

class MallCategory extends Base
{

    protected $rule = [
        'title|商品分类名称' => 'require|unique:mall_goods',
        'description|商品分类描述' => 'require|max:50',
    ];

    protected $message = [
    ];

    protected $scene = [
        // 后台新增分类
        'manage_add' => ['title','description'],
        // 后台编辑分类
        'manage_edit' => ['title'=>'require','description'],
    ];


}